//
//  GetQRCodeViewController.m
//  GetPowerDBO
//
//  Created by 周博 on 2017/8/4.
//  Copyright © 2017年 BogoZhou. All rights reserved.
//

#import "GetQRCodeViewController.h"

@interface GetQRCodeViewController ()

@end

@implementation GetQRCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self UISetting];
    [self showInfos];
}

- (void)UISetting{
    _viewCenter.layer.masksToBounds = YES;
    _viewCenter.layer.cornerRadius = 10;
    _imageviewHeader.layer.masksToBounds = YES;
    _imageviewHeader.layer.cornerRadius = 5;
}

- (void)showInfos{
    [_imageviewHeader sd_setImageWithURL:[NSURL URLWithString:_model.img_url] placeholderImage:[UIImage imageNamed:@""]];
    
    _labelShopName.text = [NSString stringWithFormat:@"%@",_model.name];
    
    _labelPowerNum.text = _alias;
    
    UIImage *qrImage = [BGControlHelper qrImageForString:_resaultCode imageSize:240 logoImageSize:0];
    
    _imageViewQRCode.image = qrImage;
}



- (IBAction)backButtonCLick:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}







- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
